#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll a=2e5+4;
ll s1[a],s2[a];

int main()
{
	int t;
	cin>>t;
	while(t--){
		int n;
		cin>>n;
		for(int i=0;i<n;i++)	cin>>s1[i];
		memset(s2,0,sizeof s2);
		for(int i=0;i<n;i++){
			int b=(i+s1[i])%n;
			if(b<0)	b+=n;
			s2[b]++;
		}
		int c=0;
		for(int i=0;i<n;i++){
			if(s2[i]==0||s2[i]>1){
				cout<<"NO"<<endl;
				c=1;
				break;
			}
		}
		if(c==0)	cout<<"YES"<<endl; 
	}
	return 0;
}
